<?php
namespace process;

use Workerman\Timer;
use app\helper\ProcessLockHelper;

class InitTask
{
  public function onWorkerStart()
  {
    $processLock =  new ProcessLockHelper(2);
    if($processLock->isLockExists()){
      $processLock->removeLock();
    }
  }
}
